﻿using UnityEngine;
public class Spear : BaseWeapon
{
    public float CriticalHit;  //暴击几率

    public override string Name => "Spear";

    protected override void Attack()
    {
        animator.Play("SpearAttack", 0, 0f);
    }
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.CompareTag("Enemy"))
        {
            //攻击到敌人了
        }
    }
}
